package com.hugboy.string;

import java.util.Scanner;

public class Demo5toCharArray {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("please input a str:");
        String scStr = sc.nextLine();

        char[] chrArray = scStr.toCharArray();
        for(int i=0; i<chrArray.length; i++){
            System.out.println(chrArray[i]);
        }
    }
}
